package com.yenlien.traceyun.control.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 果业中心大屏镇数据
 *
 */
@Entity
@Table(name = "t_fruit_town")
public class FruitTown extends BaseEntity {

    private String name;                // 名字

    private Double area;                // 果园面积

    private Double areaFruiting;        // 果园挂果面积

    private String fruitingRatio;       // 挂果率

    private Double prodNum;             // 产量

    private Double prodVal;             // 产值

    private String createTime;             // 创建时间

    @Column(name = "`info`", columnDefinition = "longtext")
    private String info;                // 种植信息JSON数组字符串  [{"plantName", "瑞阳", "area": "1.2"}, {...}]

    private String areaUnit;                // 面积单位

    private String prodNumUnit;             // 产量单位  万吨

    private String prodValUnit;             // 产值单位   亿元

    private String type;                // 镇 / 村

    private String parentId;            // 上级ID

    private String parentName;            // 上级镇名

    private String annual;              // 所属年度




    @Transient
    private Integer pageNum;

    @Transient
    private List<FruitTown> villageList;



    public String getAnnual() {
        return annual;
    }

    public void setAnnual(String annual) {
        this.annual = annual;
    }


    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public List<FruitTown> getVillageList() {
        return villageList;
    }

    public void setVillageList(List<FruitTown> villageList) {
        this.villageList = villageList;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }



    public String getAreaUnit() {
        return areaUnit;
    }

    public void setAreaUnit(String areaUnit) {
        this.areaUnit = areaUnit;
    }

    public String getProdNumUnit() {
        return prodNumUnit;
    }

    public void setProdNumUnit(String prodNumUnit) {
        this.prodNumUnit = prodNumUnit;
    }

    public String getProdValUnit() {
        return prodValUnit;
    }

    public void setProdValUnit(String prodValUnit) {
        this.prodValUnit = prodValUnit;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }


    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    public String getFruitingRatio() {
        return fruitingRatio;
    }

    public void setFruitingRatio(String fruitingRatio) {
        this.fruitingRatio = fruitingRatio;
    }

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    public Double getAreaFruiting() {
        return areaFruiting;
    }

    public void setAreaFruiting(Double areaFruiting) {
        this.areaFruiting = areaFruiting;
    }

    public Double getProdNum() {
        return prodNum;
    }

    public void setProdNum(Double prodNum) {
        this.prodNum = prodNum;
    }

    public Double getProdVal() {
        return prodVal;
    }

    public void setProdVal(Double prodVal) {
        this.prodVal = prodVal;
    }
}
